<video id="myPlayer" class="video-js vjs-default-skin" controls>
</video>

<script src="https://vjs.zencdn.net/7.20.1/video.min.js"></script>
<link href="https://vjs.zencdn.net/7.20.1/video-js.css" rel="stylesheet">

<script>
    const player = videojs('myPlayer');
    const fragments = [
        'http://media.shenglong.com/record/camera_2/2025-07-23/2025-07-23-02-34-55-0.mp4',
        'http://media.shenglong.com/record/camera_2/2025-07-23/2025-07-23-02-35-07-1.mp4',
        ...
    ];

    let currentIndex = 0;

    function playNext() {
        if (currentIndex < fragments.length) {
            player.src({ type: 'video/mp4', src: fragments[currentIndex++] });
            player.play();
        }
    }

    player.on('ended', playNext);
    playNext();
</script>
